package com.sx.micowell.module.smartDevice;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.example.mvvm.base.action.TitleBarAction;
import com.example.mvvm.base.data.DataBindingConfig;
import com.gyf.immersionbar.ImmersionBar;
import com.sx.micowell.BR;
import com.sx.micowell.R;
import com.sx.micowell.databinding.ActDeviceLoginBinding;
import com.sx.micowell.framework.app.MyActivity;
import com.sx.micowell.framework.arouth.RoutePath;
import com.sx.micowell.framework.model.smartDevice.SmartDeviceLoginModel;

/**
 * @Author: YY
 * @Time: 2021/9/15
 * @Describe 智能设备 - 账号登录
 */
@Route(path = RoutePath.SMART_DEVICE_LOGIN)
public class DeviceLoginActivity extends MyActivity<ActDeviceLoginBinding> {

    private SmartDeviceLoginModel viewModel;

    @Override
    protected void initViewModel() {
        super.initViewModel();
        viewModel = getActivityScopeViewModel(SmartDeviceLoginModel.class);
    }

    @Override
    protected DataBindingConfig getDataBindingConfig() {
        return new DataBindingConfig(R.layout.act_device_login, BR.viewModel, viewModel);
    }

    @Override
    public void initView() {
        // 设置状态栏字体颜色
        ImmersionBar.with(this).statusBarDarkFont(true)
                .fitsSystemWindows(true).init();
    }

    @Override
    public void initData() {

    }

}
